#include "Damage.h"
#include "ResourceManager.h"

void Damage::CreateDamage(Entity * a, int n)
{
	isEnabled=true;
	actor=a;
	number=n;
	offset=0;
}
void Damage::UpdateDamage(position2d<s32> pos)
{
	pos.Y+=offset--;
	pos.X-=20; // HARDCODE PARA UBICAR X_X
	ResourceManager::ParseNumber(number,pos);
	if(offset>30)
		isEnabled=false;
}

Damage::Damage()
{}

Damage::~Damage()
{}
